<?php
include_once '../tools/DbTools.php';
session_start();
$userinfo = $_SESSION[$_COOKIE['Token']];
DbTools::InitDb();
$sql = "select CardMoney from bankcard where CardId = ".$userinfo['CardId'];
$result = DbTools::select($sql);
DbTools::close();
$money = $result[0]['CardMoney'];
?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>用户中心</title>
</head>
<body>
<p><a href="../user/userinfo.php">用户中心</a></p>
<form action="moneyOutAction.php" method="post">
    当前余额：<input type="text" value="<?php echo $money?>" readonly="readonly" disabled="disabled" /><br />
    取款金额： <input type="text" name="withdrawal" value="" />
    <br />
    <input type="submit" value="提交"/>
</form>
</body>
</html>